package com.git.contractmanagement.entity;


import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 合同订单实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Orders implements Serializable {

    /**
     * 订单状态 1待付款 2 已付款 3已完成 4已取消 5退款
     */
    public static final Integer PENDING_PAYMENT = 1;
    public static final Integer PAYMENT_MADE =2 ;
    public static final Integer DELIVERY_IN_PROGRESS = 3;
    public static final Integer COMPLETED = 4;
    public static final Integer CANCELLED = 5;






    private static final long serialVersionUID = 1L;

    private Long id;

    // 合同编号
    private String contractNo;

    //订单号
    private String number;
    // 合同名称
    private String contractName;

    // 客户ID
    private Long customerId;

    // 需支付金额
    private BigDecimal payAmount;


    // 创建时间
    private LocalDateTime createdTime;

    // 付款时间
    private LocalDateTime checkoutTime;

    //订单状态 1待付款 2已完成 3已取消 4退款
    private Integer status;


}